package le.service.impl;

import le.dao.ActivityDao;
import le.dao.ActivityGroupDao;
import le.entity.ActivityDO;
import le.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author liangyongle
 * @date 2018/8/1 0001
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private ActivityDao activityDao;

    @Resource
    private ActivityGroupDao activityGroupDao;


    @Override
    public ActivityDO getActivity() {
        String id = "activity_018b0f33";
        ActivityDO list = activityDao.selectByPrimaryKey(id);

        return list;
    }

    @Override
    public Map<String, Object> getActivityInfo() {
        String id = "activity_018b0f33";
        Map<String, Object> result = activityGroupDao.getActivityInfo(id);
        return result;
    }
}
